package com.apex.restful.entity;

import javax.persistence.*;
import java.io.Serializable;

@Entity
@Table(name = "T_BSDT_USER_TECHNOLOGICAL")
public class TBsdtUserTechnological implements Serializable {
    private Long id;
    private Long serverId;
    private String userid;
    private String dysj;

    @Id
    @Column(name = "ID")
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    @Basic
    @Column(name = "SERVER_ID")
    public Long getServerId() {
        return serverId;
    }

    public void setServerId(Long serverId) {
        this.serverId = serverId;
    }

    @Basic
    @Column(name = "USERID")
    public String getUserid() {
        return userid;
    }

    public void setUserid(String userid) {
        this.userid = userid;
    }

    @Basic
    @Column(name = "DYSJ")
    public String getDysj() {
        return dysj;
    }

    public void setDysj(String dysj) {
        this.dysj = dysj;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        TBsdtUserTechnological that = (TBsdtUserTechnological) o;

        if (id != that.id) return false;
        if (serverId != that.serverId) return false;
        if (userid != null ? !userid.equals(that.userid) : that.userid != null) return false;
        if (dysj != null ? !dysj.equals(that.dysj) : that.dysj != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = (int) (id ^ (id >>> 32));
        result = 31 * result + (int) (serverId ^ (serverId >>> 32));
        result = 31 * result + (userid != null ? userid.hashCode() : 0);
        result = 31 * result + (dysj != null ? dysj.hashCode() : 0);
        return result;
    }
}
